package com.micro.plugins.oss.executor;


import com.micro.plugins.oss.enums.OssRuleFlag;
import com.micro.plugins.oss.vo.UploadFile;

/**
 * <h1>对象存储规则处理器接口定义</h1>
 * @author LevelCoder
 * @version V1.0.0
 * @email LevelCoder@126.com
 * @date 2020/5/8
 */
public interface OssRuleExecutor {

    /**
     * 规则类型标记
     * @return {@link OssRuleFlag}
     */
    OssRuleFlag ruleConfig();

    /**
     * 上传文件
     * @return
     */
    String upload(UploadFile uploadFile);
}
